package org.spbsu.apco.server.system;

import javax.xml.bind.annotation.XmlRootElement;

/**
 * User: mikpan
 * Date: 12/12/12
 * Time: 2:38 PM
 */
@XmlRootElement(name = "Runner")
public class Runner {
    private String id;
    private String macAddress;
    private int threadsCount;

    /**
     * This constructor should only be used for serialization/deserilization purposes.
     */
    @Deprecated
    public Runner() {

    }

    public Runner(String id) {
        this.id = id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public String getMacAddress() {
        return macAddress;
    }

    public void setMacAddress(String macAddress) {
        this.macAddress = macAddress;
    }

    public int getThreadsCount() {
        return threadsCount;
    }

    public void setThreadsCount(int threadsCount) {
        this.threadsCount = threadsCount;
    }

    @Override
    public String toString() {
        return "Runner{" +
                "id=" + id +
                ", mac='" + macAddress + '\'' +
                '}';
    }
}
